<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <jsp:include flush="true" page="_header.jsp"></jsp:include>
  <body class="bgwhite">
  	<logic:empty name="pageBean" property="list">
		<blockquote class="msg-info">
			<h3>搜索记录为空</h3>
			<p>没有查询到任何文章，请重新操作</p>
			<p class="controlbar">
				您可以：
				<logic:empty name="typeid">
					<a target="iFrame1" href="<%=request.getContextPath()%>/admin.do?action=articlecreate&fatherid=<bean:write name="fatherid" />">发布文章</a>
				</logic:empty>
				<logic:notEmpty name="typeid">
					<a target="iFrame1" href="<%=request.getContextPath()%>/admin.do?action=articlecreate&fatherid=<bean:write name="fatherid" />&typeid=<bean:write name="typeid" />">发布文章</a>
				</logic:notEmpty>
			</p>
		</blockquote>
	</logic:empty>
	<logic:notEmpty name="pageBean" property="list">
		<p class="controlbar">
			<logic:empty name="typeid">
				<a target="iFrame1" href="<%=request.getContextPath()%>/admin.do?action=articlecreate&fatherid=<bean:write name="fatherid" />">发布文章</a>
			</logic:empty>
			<logic:notEmpty name="typeid">
				<a target="iFrame1" href="<%=request.getContextPath()%>/admin.do?action=articlecreate&fatherid=<bean:write name="fatherid" />&typeid=<bean:write name="typeid" />">发布文章</a>
			</logic:notEmpty>
		</p>
	    <table class="tablelist" border="0" cellpadding="0" cellspacing="0">
	    	<tr>
	    	  <th width="5%" align="center"><input type="checkbox" value="" /></th>
    		  <th width="57%" align="left">文章标题</th>
    		  <th width="14%" align="center">发布时间</th>
    		  <th width="9%" align="center">
    		  	发布人
    		  </th>
	    	  <th width="15%" align="center">操作</th>
	    	</tr>
	    	<logic:iterate id="artList" name="pageBean" property="list">
	    	<tr>
	    		<td align="center"><input type="checkbox" value="" /></td>
	    		<td align="left"><a target="_blank" href="<%=request.getContextPath()%>/web.do?action=view&articleID=<bean:write name="artList" property="articleid" />"><bean:write name="artList" property="articletitle" /></a></td>
	    		<td align="center"><bean:write name="artList" property="articletime" /></td>
	    		<td align="center">
	    			<logic:notEmpty name="artList" property="articleauthor2">
	    				<bean:write name="artList" property="articleauthor2" />
	    			</logic:notEmpty>
	    			<logic:empty name="artList" property="articleauthor2">
	    				<bean:write name="artList" property="articleauthor" />	
	    			</logic:empty>
	    		</td>
	    		<td align="center">
	    			<a href="admin.do?action=article&operate=delete&fatherid=<bean:write name="fatherid" />&typeid=<bean:write name="artList" property="typeid" />&articlearr=<bean:write name="artList" property="articleid" />">删除</a>
	    			&nbsp;&nbsp;
	    			<a href="admin.do?action=articledit&fatherid=<bean:write name="fatherid" />&articleid=<bean:write name="artList" property="articleid" />">修改</a>
	    		</td>
	    	</tr>
	    	</logic:iterate>
	    </table>
	    <logic:notEmpty name="outPages">
            <table class="pagestab" border="0" cellpadding="0" cellspacing="0">
		    	<tr>
		    		<td>
		    		<jsp:include flush="true" page="_pages.jsp"></jsp:include>
		    		</td>
		    	</tr>
		    </table>
         </logic:notEmpty>
    </logic:notEmpty>
  </body>
</html>
